`ifndef INSTF_V
`define INSTF_V


`include "defines.v"

// instruction fetch，取指电路
module instf(
    input  wire[`InstAddrWidth - 1 : 0] pc_i                ,

    // to rom
    output wire[`InstAddrWidth - 1 : 0] instf2rom_addr_o    ,
    input  wire[`InstWidth - 1 : 0]     rom_inst_i          ,

    // to instf_id
    output wire[`InstAddrWidth - 1 : 0] inst_addr_o         ,
    output wire[`InstWidth - 1 : 0]     inst_o
);

assign instf2rom_addr_o = pc_i;
assign inst_addr_o      = pc_i;
assign inst_o           = rom_inst_i;

endmodule


`endif // INSTF_V